﻿@model Infinity.Models.Lab

@{
    ViewBag.Title = "Create";
    Layout = "~/Areas/Managerial/Views/Shared/_AdminLayout.cshtml";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()

    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Lab</legend>
         <div class="editor-label">
             <div class="editor-label">  
            <span class="input input--jiro">
                            <input class="input__field input__field--jiro" type="text" id="LabID" name="LabID" />
                            <label class="input__label input__label--jiro" for="input-10">
                                <span class="input__label-content input__label-content--jiro">Lab ID <span class="star"></span></span>
                            </label>

                        </span>
           @Html.ValidationMessageFor(model => model.LabID,"*")
              </div>
                        <br>
        <span class="input input--jiro">
                            <input class="input__field input__field--jiro" type="text" id="Lab_Name" name="Lab_Name" />
                            <label class="input__label input__label--jiro" for="input-10">
                                <span class="input__label-content input__label-content--jiro">Lab Name <span class="star"></span></span>
                            </label>

                        </span>
              @Html.ValidationMessageFor(model => model.Lab_Name,"*")
              </div>
                        <br>
       
          @*  @Html.LabelFor(model => model.Lab_Name)*@
       
        @*<div class="editor-field">
            @Html.EditorFor(model => model.Lab_Name)
           
        </div>*@

        @* <span class="input input--jiro">
                           
                            <label class="input__label input__label--jiro" for="input-10">
                                <span class="input__label-content input__label-content--jiro">Branch <span class="star"></span></span>
                            </label>
               <select class="input__field input__field--jiro"  id="branchID"  name="branchID" >
                  @foreach (var item in Model)
                  {
                       <option >@item.branchID</option>
                  }
                      
                   
                   
                    </select>

                       </span>*@
               
                
                    <span class="input input--jiro">
                           
                           @* <label class="input__label input__label--jiro" for="input-10" >
                                <span class="input__label-content input__label-content--jiro">Branch Name </span>
                            </label> *@       
           
           @Html.LabelFor(model => model.branchID, "Branch Name")
              @Html.DropDownList("branchID", null,string.Empty, new {@class="input__label-content input__label-content--jiro" })
                       

              @Html.ValidationMessageFor(model => model.branchID,"*")

            
                   
               </span>
        
        <div class="editor-field">
         
           
        </div>
         <p>

            @Html.ValidationSummary(false,"Please fix the errors then submit ")
        </p>

    </fieldset>
    <div>
    <table>
        <tr>
            <td> &nbsp;&nbsp;<input type="submit" value="Create" class="send" /></td>
            <td>&nbsp;&nbsp;<a href="@Url.Action("Index", "Lab")" class="send">BacK to list</a></td>

        </tr>
    </table>
        

</div>
}


